package com.goalias.constant;

import java.util.HashMap;
import java.util.Map;

public class SystemConstants {
    public static final Map<String,Integer> warnNoticeMap=new HashMap<>(){
        {
            put(SystemConstants.HOTDATA_NOTICE,SystemConstants.HOTDATA_SCENE);
            put(SystemConstants.FALLBACK_NOTICE,SystemConstants.FALLBACK_SCENE);
            put(SystemConstants.RATE_NOTICE,SystemConstants.RATE_SCENE);
        }
    };
    /*****************************文章article*******************************/
    /**
     * 文章是正常发布状态
     */
    public static final String ARTICLE_STATUS_NORMAL = "0";

    /**
     * 文章是草稿状态
     */
    public static final String ARTICLE_STATUS_Draft = "1";

    /**
     * 目录是正常发布状态
     */
    public static final String CATEGORY_STATUS_NORMAL = "0";

    /**
     * 友链是审核通过状态
     */
    public static final String LINK_STATUS_PASS = "0";


    /**
     * 用户类型为管理员
     */
    public static final String ADMIN_USER = "1";

    /*****************************通知notice*********************************/

    public static final Integer WARNING_TYPE = 10;
    public static final Integer NOTICE_TYPE = 20;
    /**
     * 降级通知
     */
    public static final String TO_EMAIL = "gao0831mail@163.com";
    /**
     * 降级通知
     */
    public static final String FALLBACK_NOTICE = "降级通知";
    public static final Integer FALLBACK_SCENE = 1;
    public static final Integer FALLBACK_TIMEOUT = 30;
    /**
     * 热数据通知
     */
    public static final String HOTDATA_NOTICE = "热数据通知";
    public static final Integer HOTDATA_SCENE = 2;
    public static final Integer HOTDATA_TIMEOUT = 30;
    /**
     * 限流通知
     */
    public static final String RATE_NOTICE = "限流通知";
    public static final Integer RATE_SCENE = 0;
    public static final Integer RATE_TIMEOUT = 30;

}
